﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace DoAn
{
    public class Cell : VisibleGameEntity
    {
        public Cell(ContentManager content, string pic, Vector2 topleft, Vector2 size)
        {
            Size = size;
            Topleft = topleft;
            DefaultSize = Size;
            Texture2D[] texture = new Texture2D[1];
            texture[0] = content.Load<Texture2D>(pic);
            mySprites = new List<MySprite>();
            MySprite temp = new MySprite(texture, Topleft);
            mySprites.Add(temp);
            nSprites = 1;
        }

        //protected float _scale = 1.0f;

        //public float Scale
        //{
        //    get { return _scale; }
        //    set
        //    {
        //        _scale = value;
        //    }
        //}

        protected Vector2 _defaultSize;

        public Vector2 DefaultSize
        {
            get { return _defaultSize; }
            set { _defaultSize = value; }
        }


    }
}
